import {AppRegistry} from 'react-native';

let carrotRouterMap = {
    colorPicker: {
        path: '/carrot/color-selector/index'
    },



    testPage:{
        path:'/carrot/test'
    },
    itemContentDemo:{
        path: 'itemContentDemo'
    },
    itemHeaderDemo:{
        path:"itemHeaderDemo"
    },
    messagePageDemo:{
        path:"messagePageDemo"
    },
    imageBox2Demo:{
        path:"imageBox2Demo"
    }
}

export {carrotRouterMap}

export default class CarrotConfig {

    constructor() {
        AppRegistry.registerComponent(carrotRouterMap.colorPicker.path, () => require('./color-selector/index').default);
        AppRegistry.registerComponent(carrotRouterMap.testPage.path, () => require('./view-test.page').default);
        ///demo page
        AppRegistry.registerComponent(carrotRouterMap.itemContentDemo.path, () => require('./items/item-content/demo.page').default);
        AppRegistry.registerComponent(carrotRouterMap.itemHeaderDemo.path, () => require('./items/item-header/demo.page').default);
        AppRegistry.registerComponent(carrotRouterMap.messagePageDemo.path, () => require('./message-page/demo.page').default);
        AppRegistry.registerComponent(carrotRouterMap.imageBox2Demo.path, () => require('./image-box/demo-two.page').default);
    }
}


